using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class BsScheduledetailTable : TableInfo
	{
		public const string C_TABLENAME = "Bs_Scheduledetail"; 

		public const string C_SCHEDULEDETAILID = "SCHEDULEDETAILID";
		public const string C_SCHEDULEID = "SCHEDULEID";
		public const string C_WORKORDERNO = "WORKORDERNO";
		public const string C_PLANID = "PLANID";
		public const string C_SCHEDULENUM = "SCHEDULENUM";
		public const string C_REMARK = "REMARK";
		public const string C_EXPECTINSTOCKDATE = "EXPECTINSTOCKDATE";
		public const string C_ACTULINSTOCKDATE = "ACTULINSTOCKDATE";
		public const string C_INSTOCKNUMS = "INSTOCKNUMS";
				
		public BsScheduledetailTable()
		{
			_tableName ="Bs_Scheduledetail";
		}

		protected static BsScheduledetailTable _current;

		public static BsScheduledetailTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new BsScheduledetailTable();

			_current.Add(C_SCHEDULEDETAILID, new ColumnInfo(C_SCHEDULEDETAILID, "", true, typeof(Decimal?)));
			_current.Add(C_SCHEDULEID, new ColumnInfo(C_SCHEDULEID, "", false, typeof(String)));
			_current.Add(C_WORKORDERNO, new ColumnInfo(C_WORKORDERNO, "", false, typeof(String)));
			_current.Add(C_PLANID, new ColumnInfo(C_PLANID, "", false, typeof(String)));
			_current.Add(C_SCHEDULENUM, new ColumnInfo(C_SCHEDULENUM, "", false, typeof(Decimal?)));
			_current.Add(C_REMARK, new ColumnInfo(C_REMARK, "", false, typeof(String)));
			_current.Add(C_EXPECTINSTOCKDATE, new ColumnInfo(C_EXPECTINSTOCKDATE, "", false, typeof(DateTime?)));
			_current.Add(C_ACTULINSTOCKDATE, new ColumnInfo(C_ACTULINSTOCKDATE, "", false, typeof(DateTime?)));
			_current.Add(C_INSTOCKNUMS, new ColumnInfo(C_INSTOCKNUMS, "", false, typeof(Decimal?)));
						
		}

		public ColumnInfo SCHEDULEDETAILID
		{
			get { return this[C_SCHEDULEDETAILID];}
		}

		public ColumnInfo SCHEDULEID
		{
			get { return this[C_SCHEDULEID];}
		}

		public ColumnInfo WORKORDERNO
		{
			get { return this[C_WORKORDERNO];}
		}

		public ColumnInfo PLANID
		{
			get { return this[C_PLANID];}
		}

		public ColumnInfo SCHEDULENUM
		{
			get { return this[C_SCHEDULENUM];}
		}

		public ColumnInfo REMARK
		{
			get { return this[C_REMARK];}
		}

		public ColumnInfo EXPECTINSTOCKDATE
		{
			get { return this[C_EXPECTINSTOCKDATE];}
		}

		public ColumnInfo ACTULINSTOCKDATE
		{
			get { return this[C_ACTULINSTOCKDATE];}
		}

		public ColumnInfo INSTOCKNUMS
		{
			get { return this[C_INSTOCKNUMS];}
		}

		
	}
}


